import request from '@/utils/request'

// 查询店铺信息列表
export function listShopman(query) {
  return request({
    url: '/shopman/shopman/list',
    method: 'get',
    params: query
  })
}

// 查询店铺信息详细
export function getShopman(shopId) {
  return request({
    url: '/shopman/shopman/' + shopId,
    method: 'get'
  })
}

// 新增店铺信息
export function addShopman(data) {
  return request({
    url: '/shopman/shopman',
    method: 'post',
    data: data
  })
}

// 修改店铺信息
export function updateShopman(data) {
  return request({
    url: '/shopman/shopman',
    method: 'put',
    data: data
  })
}

// 删除店铺信息
export function delShopman(shopId) {
  return request({
    url: '/shopman/shopman/' + shopId,
    method: 'delete'
  })
}
